import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;


public class PreviousButton extends JButton implements ActionListener{
	private GuiClient gui;
	
	public PreviousButton(GuiClient gui) {
		super("< previous");
		this.gui = gui;
		setEnabled(false);
		addActionListener(this);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		//gui.load();
		gui.previousQuestion();
		
	}
}
